﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/AdminPanel/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMVC.Areas.AdminPanel.Models.FontViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create Font
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create Font</h2>

    <% using (Html.BeginForm("CreateFont", "Dictionary", null, FormMethod.Post, new { enctype = "multipart/form-data" }))
       {%>
        <%: Html.ValidationSummary(true)%>
        <div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Name)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name)%>
                <%: Html.ValidationMessageFor(model => model.Name)%>
            </div>
            
            
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.IsUnicode)%>
            </div>
            <div class="editor-field">
                <%: Html.CheckBoxFor(model => model.IsUnicode)%>
                <%: Html.ValidationMessageFor(model => model.IsUnicode)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.LanguageCode)%>
            </div>
            <div class="editor-field">
                <%: Html.DropDownListFor(model => model.LanguageCode, Model.AllLanguages)%>
                <%: Html.ValidationMessageFor(model => model.LanguageCode)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Style)%>
            </div>
            <div class="editor-field">
                <%: Html.DropDownListFor(model => model.Style, Model.AllStyles)%>
                <%: Html.ValidationMessageFor(model => model.Style)%>
            </div>
            
            <div class="editor-label">
                Font file
            </div>
            <div class="editor-field">
            
                <input type="file" name="font-file" id="font-file" />
            </div>

            <p>
                <input type="submit" value="Create" />
            </p>
        </div>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>

